//-----------------------------------------------------------------------
// <copyright file="ExceptionOccurredEventArgs.cs" company="None">
//     (c) 2014-2015 IIHOSHI Yoshinori
// </copyright>
//-----------------------------------------------------------------------

namespace ThScoreFileConverter.Models
{
    using System;
    using System.Diagnostics.CodeAnalysis;

    /// <summary>
    /// Represents the event data that indicates occurring of an exception.
    /// </summary>
#if DEBUG
    [SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses", Justification = "Reviewed.")]
#endif
    internal class ExceptionOccurredEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ExceptionOccurredEventArgs"/> class.
        /// </summary>
        /// <param name="ex">The exception data.</param>
        public ExceptionOccurredEventArgs(Exception ex)
        {
            this.Exception = ex;
        }

        /// <summary>
        /// Gets the exception data.
        /// </summary>
        public Exception Exception { get; private set; }
    }
}
